from rest_framework import serializers
from apps.goods.models import *


class SPUGoodsViewSetSerializer(serializers.ModelSerializer):

    brand = serializers.StringRelatedField()

    class Meta:
        model = SPU
        fields = ("id", "name", 'brand')

